﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Register.Command
{
    /// <summary> 
    /// FileName: ImageNameHelper.cs    
    /// CLRVersion: 4.0.30319.269    
    /// Author: DoubleZ    
    /// Corporation:     
    /// Description:     
    /// DateTime: 2012/7/4 23:14:50    
    /// </summary>
 public   class ImageNameHelper
 {     /// <summary>
       ///自动生成图片名称
       /// </summary>
       /// <param name=""></param>
       /// <returns></returns>
        public static string GetFileName(){
        StringBuilder stu = new StringBuilder();
        stu.Append("register_");
        stu.Append(DateTime.Now.Year.ToString());
        stu.Append(DateTime.Now.Month.ToString());
        stu.Append(DateTime.Now.Day.ToString());
        stu.Append(DateTime.Now.Minute.ToString());
        stu.Append(DateTime.Now.Second.ToString());
        stu.Append(DateTime.Now.Millisecond.ToString());
        return stu.ToString();
      }

    }
}
